<?
if ($_POST["url"])
   $url = $_POST["url"];
else if ($_GET["url"])
   $url = $_GET["url"];
else 
   $url = 'ad.flv';
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> Video Title: <?=$url?> </TITLE>
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="Mon, 04 Dec 2009 21:29:02 GMT">
<style>
<!--
	/* hide from ie on mac \*/
	html {
		height: 100%;
		overflow: hidden;
	}
	
	#flashcontent {
		border: solid 0px #000;
		height: 100%;
		float: center;
		margin: 0px 0px;
	}
	/* end hide */
//-->
</style>
<script type="text/javascript" src="swfobject.js"></script>
<script language=JavaScript>
<!--

//Disable right click script III- By Renigade (renigade@mediaone.net)
//For full source code, visit http://www.dynamicdrive.com

var message="";
///////////////////////////////////
function clickIE() {if (document.all) {(message);return false;}}
function clickNS(e) {if 
(document.layers||(document.getElementById&&!document.all)) {
if (e.which==2||e.which==3) {(message);return false;}}}
if (document.layers) 
{document.captureEvents(Event.MOUSEDOWN);document.onmousedown=clickNS;}
else{document.onmouseup=clickNS;document.oncontextmenu=clickIE;}

document.oncontextmenu=new Function("return false")
// --> 
</script>
</HEAD>
<body bgcolor="#000000" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" scroll="NO" onBlur="window.focus()">
<TABLE border=0 cellspacing=0 cellpadding=0 align=center width="100%" HEIGHT="100%">
<TR>
	<TD valign="middle" align="center">

<!-- <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="100%" height="100%" id="popup" align="middle">
<PARAM NAME=FlashVars VALUE="url=<?=$url?>&filename=<?=$url?>">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="system/popup.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#000000" />
<embed src="system/popup.swf" FlashVars="url=<?=$url?>&filename=<?=$url?>" quality="high" bgcolor="#000000" width="100%" height="100%" name="popup" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object> -->

<!-- start -->
	<div id="flashcontent">
<strong>You need to upgrade your Flash Player</strong><BR>
		It appears you do not have the Flash 7 plugin or have you have Javascript turned off. Please click <a href="popup.php?detectflash=false">this link</a> to <a href="popup.php?detectflash=false">bypass the detection</a> if you wish.
	</div>

	<script type="text/javascript">
		// <![CDATA[
		
		var fo = new SWFObject("system/popup.swf", "popup", "100%", "100%", "7", "#000000");
		fo.addVariable("url", "<?=$url?>");
		//fo.addVariable("text", "<?=$item[3]?>");
		//fo.addVariable("flashVarText", "this is passed in via FlashVars for example only"); // this line is optional, but this example uses the variable and displays this text inside the flash movie
		fo.write("flashcontent");
		
		// ]]>
	</script>
<!-- end -->

</TD>
</TR>
</TABLE>
</BODY>
</HTML>
